@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;800&display=swap');

/* בסיס */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Heebo', sans-serif;
  background: radial-gradient(circle at top, #eaf4ff 0%, #d7eaff 50%, #bcd4f5 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Topbar */
.topbar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 30px;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 10px rgba(0, 102, 204, 0.1);
  border-bottom: 1px solid #cce0ff;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  gap: 10px;
}

.navbar button {
  background-color: #ffffff22;
  color: #003366;
  border: 2px solid #007bff;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.navbar button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 0;
}

.navbar button:hover::before {
  width: 300%;
  height: 300%;
}

.navbar button:hover {
  color: white;
  background-color: #007bff;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
}

/* Layout */
.main-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 60px;
}

.logo-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-center img {
  max-width: 480px;
  width: 100%;
  height: auto;
  animation: fadeInLogo 1s ease-in-out;
}

@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Form Box (used here as CTA box) */
.form-container {
  flex: 1;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 102, 204, 0.25);
  padding: 40px 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  animation: fadeInForm 0.9s ease;
}

@keyframes fadeInForm {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-container h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #004c99;
  text-align: center;
  margin-bottom: 1.8rem;
  text-shadow: 0 0 8px rgba(0, 102, 204, 0.2);
}

.buttons-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.buttons-row button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-save {
  background: linear-gradient(90deg, #007bff, #00a2ff);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.4);
}

.btn-save:hover {
  background: linear-gradient(90deg, #0059c9, #008cff);
  transform: translateY(-2px);
}

.btn-clear {
  background: rgba(0, 0, 0, 0.15);
  color: #003366;
}

.btn-clear:hover {
  background: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.1);
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-6px);
}

.icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-in-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    padding: 20px;
  }

  .logo-center img {
    max-width: 300px;
  }

  .form-container {
    width: 100%;
    padding: 30px 20px;
    margin-top: 20px;
  }
}


.stats-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background-color: #f0f8ff;
  border: 1px solid #003366;
  border-radius: 8px;
  padding: 20px;
  width: 160px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #003366;
}

.stat-card p {
  font-size: 1.5rem;
  font-weight: bold;
  color: #003366;
}


.summary-type-table th,
.summary-type-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
}

.summary-type-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.summary-type-table tbody tr:hover {
  background-color: #e0f7fa;
}


/* כפתור שכחת סיסמה */
#forgotPasswordBtn {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: 'Heebo', sans-serif;
  margin-top: 10px;
  direction: rtl;
}

#forgotPasswordBtn:hover {
  color: #0056b3;
  text-decoration: none;
}

/* ===== Hamburger Menu ===== */
.hamburger {
  display: none;
  background: none;
  border: 2px solid #007bff;
  color: #003366;
  padding: 8px 16px;
  font-size: 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger.open {
  background: #007bff;
  color: white;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
  }

  .hamburger {
    display: block;
  }

  .navbar {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
  }

  .navbar.active {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* === טעינת מטוס נייר === */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #eaf4ff 0%, #d7eaff 50%, #bcd4f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  transition: opacity 0.6s ease;
}

.plane-wrapper {
  text-align: center;
  position: relative;
}

.paper-plane {
  width: 80px;
  animation: flyplane 2.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 102, 204, 0.2));
}

.loading-text {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #003366;
}

#loader-wrapper {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #eaf4ff 0%, #d7eaff 50%, #bcd4f5 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.sky {
  width: 300px;
  height: 150px;
  margin-bottom: 20px;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #003366;
  font-family: 'Heebo', sans-serif;
}
.watermark {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 300px;
  height: auto;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  background: url('img/logo_transparent.png') no-repeat center center;
  background-size: contain;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.02); }
}

body::before {
  animation: breathe 8s ease-in-out infinite;
}
